package pkg

import (
	"math/rand"
	"regexp"
	"strconv"
	"time"
)

//随机

func RandOmInfo() string {
	rand.Seed(time.Now().Unix())
	num := rand.Intn(9000) + 1000
	return strconv.Itoa(num)
}

//手机号格式

func ValidateMobile(mobile string) bool {
	re := regexp.MustCompile(`^1[3-9]\d{9}$`)
	return re.MatchString(mobile)
}
